/**
 * There are <a href="https://github.com/thinkgem/jeesite">JeeSite</a> code generation
 */
package com.chlitina.store.modules.expert.dao;

import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Component;

import com.chlitina.store.common.persistence.BaseDao;
import com.chlitina.store.common.persistence.BaseDaoImpl;
import com.chlitina.store.modules.expert.entity.SolutionFace;

/**
 * 面部护理方案DAO接口
 * @author lvbo
 * @version 2013-06-07
 */
public interface SolutionFaceDao extends SolutionFaceDaoCustom, CrudRepository<SolutionFace, Long> {
	
	@Modifying
	@Query("update SolutionFace set status=?1 where id = ?2")
	public int changeStatus(int status, Long id);
}

/**
 * DAO自定义接口
 * @author lvbo
 */
interface SolutionFaceDaoCustom extends BaseDao<SolutionFace> {

}

/**
 * DAO自定义接口实现
 * @author lvbo
 */
@Component
class SolutionFaceDaoImpl extends BaseDaoImpl<SolutionFace> implements SolutionFaceDaoCustom {

}
